/*
 * @Author       : wfl
 * @LastEditors  : wfl
 * @description  :
 * @updateInfo   :
 * @Date         : 2023-03-02 09:54:42
 * @LastEditTime : 2023-10-24 14:02:03
 */
import autoImport from 'unplugin-auto-import/vite'

export default function createAutoImport() {
  return autoImport({
    imports: [
      'vue',
      'vue-router',
      'pinia',
      '@vueuse/core'
    ],
    dts: './src/global/types/auto-imports.d.ts',
    dirs: [
      './src/global/enums/**',
      './src/global/utils/**',
      './src/global/hooks/**',
      './src/global/store/modules/**',
      './src/MainApp/iconify/**',
      './src/global/decorators/**'
    ]
  })
}
